import Vue from 'vue'
import request from '@/itsoftUI/utils/request'
import qs from "qs"
const baseUrl = Vue.prototype.$serviceUrl + "/repairInspection"

//数据字典api
export const dictDataApi = {
    systemDictType: function () {
        const data = {


        }
        return request({
            url: baseUrl + '/systemDictType/list',
            method: 'post',
            data: qs.stringify(data)
        })
    },
    systemDictData: function (search, order) {
        const data = {
            search, order
        }
        return request({
            url: baseUrl + '/systemDictData/list',
            method: 'post',
            data: qs.stringify(data)
        })
    },
    //提取信息
    Get: function (id) {
        const data = {
            id
        };
        return request({
            url: baseUrl + "/systemDictData/get",
            method: "post",
            data: qs.stringify(data)
        });
    },

    // 删除
    Del: function (ids) {
        const data = {
            ids
        }
        return request({
            url: baseUrl + "/systemDictData/delete",
            method: "post",
            data: qs.stringify(data)
        });
    },
    save: function (data) {
        const config = {
            headers: {
                'Content-Type': 'application/json;charset=utf-8'
            },
        }
        return request.post(baseUrl + "/systemDictData/save", data, config)
    }
}